export const useLocalData = false

export const knowData = () => {
  return {
    code: 200,
    data: {
      data: {
        node: [
          {
            name: '知识点',
            label: '知识点',
            size: ['120'],
            type: 'node',
            x: 0,
            y: 0,
            shape: 'circleNode',
            color: '#D9D919',
            backgroundColor: '#D9D919',
            inPoints: [
              [0, 1],
              [0, -1],
              [1, 0],
              [-1, 0]
            ],
            offsetX: 0,
            offsetY: 0,
            id: 'node2'
          },
          {
            name: '属性1',
            label: '属性1',
            size: ['60'],
            type: 'node',
            x: 260,
            y: 190,
            shape: 'circleNode',
            color: '#7093DB',
            backgroundColor: '#7093DB',
            inPoints: [
              [0, 1],
              [0, -1],
              [1, 0],
              [-1, 0]
            ],
            id: 'node13'
          },
          {
            name: '属性2',
            label: '属性2',
            size: ['60'],
            type: 'node',
            x: 210,
            y: 400,
            shape: 'circleNode',
            color: '#7093DB',
            backgroundColor: '#7093DB',
            inPoints: [
              [0, 1],
              [0, -1],
              [1, 0],
              [-1, 0]
            ],
            offsetX: 55,
            offsetY: 16,
            id: 'node24'
          },
          {
            name: '属性3',
            label: '属性3',
            size: ['60'],
            type: 'node',
            x: 500,
            y: 0,
            shape: 'circleNode',
            color: '#7093DB',
            backgroundColor: '#7093DB',
            inPoints: [
              [0, 1],
              [0, -1],
              [1, 0],
              [-1, 0]
            ],
            offsetX: 121,
            offsetY: 20,
            id: 'node35'
          }
        ],
        relationShip: [
          {
            id: 'edge103',
            source: 'node2',
            target: 'node13',
            sourceId: 'node2',
            targetId: 'node13',
            label: 'hover 前的边文本',
            start: {
              x: 0,
              y: 60
            },
            end: {
              x: 0,
              y: -30
            },
            shape: 'self-line',
            type: 'edge',
            labelCfg: {
              style: {
                fill: 'red',
                fontSize: 28,
                textAlign: 'center'
              },
              position: 'middle', // 或 'end', 'start'
              autoRotate: true
            }
          },
          {
            id: 'edge188',
            source: 'node2',
            target: 'node24',
            sourceId: 'node2',
            targetId: 'node24',
            label: 'hover 前的边文本',
            start: {
              x: 0,
              y: 60
            },
            end: {
              x: 0,
              y: -30
            },
            shape: 'self-line',
            type: 'edge',
            startPoint: {
              x: 585.6507805853935,
              y: 138.9552927469857
            },
            endPoint: {
              x: 507.8372097875289,
              y: 229.83245572259398
            },
            labelCfg: {
              style: {
                fill: 'red',
                fontSize: 28,
                textAlign: 'center'
              },
              position: 'middle', // 或 'end', 'start'
              autoRotate: true
            }
          },
          {
            id: 'edge269',
            source: 'node2',
            target: 'node35',
            sourceId: 'node2',
            targetId: 'node35',
            label: '',
            labelCfg: {
              style: {
                fill: 'red',
                fontSize: 28,
                textAlign: 'center'
              },
              position: 'middle', // 或 'end', 'start'
              autoRotate: true
            },
            start: {
              x: 0,
              y: 60
            },
            end: {
              x: 0,
              y: -30
            },
            shape: 'self-line',
            type: 'edge',
            startPoint: {
              x: 670.4083751354959,
              y: 132.97911289103445
            },
            endPoint: {
              x: 786.108174518469,
              y: 234.84524060865206
            }
          }
        ],
        groups: []
      }
    }
  }
}
